package com.project.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.project.bean.ProcureApplyInfoBean;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.List;

/**
 * 采购申请记录表
 */
@Data
public class ProcureApplyVo implements Serializable {
    /**
     * 采购申请编号
     */
    private String procureApplyId;
    /**
     * 采购时间
     */
    private LocalDate procureDate=LocalDate.now();
    /**
     * 采购原因
     */
    private String reason;
    /**审核状态*/
    private String status;//0-未审核，1-通过，2-未通过
    /**审核未通过原因*/
    private String auditReason="暂无结果";
    /**申请详细集合*/
    @TableField(exist = false)
    private List<ProcureApplyInfoBean> procureApplyInfoList;
    public ProcureApplyVo() {
    }

    public ProcureApplyVo(String procureApplyId, LocalDate procureDate, String reason, String status, String auditReason) {
        this.procureApplyId = procureApplyId;
        this.procureDate = procureDate;
        this.reason = reason;
        this.status = status;
        this.auditReason = auditReason;
    }
}
